
#ifndef __APR_FILE_H
#define __APR_FILE_H

#include <apr_file_io.h>

namespace APRFile
{
   void lineEndingsToUnix(const char *fname, apr_pool_t *pool);
   apr_status_t dirMakeRecursiveWrapper(const char *dname, apr_fileperms_t perm, apr_pool_t *pool);
   apr_status_t openWrapper(apr_file_t **newf, const char *fname, apr_int32_t flag, apr_fileperms_t perm, apr_pool_t *pool);
   apr_status_t removeWrapper(const char *path, apr_pool_t *cont);
   apr_status_t renameWrapper(const char *from_path, const char *to_path, apr_pool_t *pool);
   apr_status_t copyWrapper(const char *from_path, const char *to_path, apr_fileperms_t perms, apr_pool_t *pool);
   apr_status_t appendWrapper(const char *from_path, const char *to_path, apr_fileperms_t perms, apr_pool_t *pool);
   const char *expandPath(const char *unexpandpath, apr_pool_t *mp);
   char *expandPathToNewString(const char *unexpandpath);
};

#endif
